package com.ruoyi.generator.mapper;

import com.ruoyi.generator.entity.Equipment;
import com.ruoyi.generator.entity.MaintenancePlan;
import com.ruoyi.generator.entity.Region;
import com.ruoyi.generator.entity.Task;

import java.util.List;

public interface ManagementMapper {

    List<Region> selectRegionList(Region region);

    int addRegion(Region region);

    int updateRegion(Region region);

    int addEquipment(Equipment equipment);

    int updateEquipment(Equipment equipment);

    List<Equipment> selectEquipmentList(Equipment equipment);
    List<Task> selectTaskList(Task task);
    List<MaintenancePlan> selectMaintenancePlanList(MaintenancePlan maintenancePlan);

    int addTask(Task task);

    int updateTask(Task task);


    void addRegions(List<Region> regions);


    void addEditTasks(List<Task> tasks);

    void addEditEquipments(List<Equipment> equipments);


    void disableForeignKeyChecks();

    void deleteWushuiTask();

    void deleteWushuiArea();

    void enableForeignKeyChecks();

    void deleteWushuiEquipment();

    List<String> getAreaIds(List<String> areaIds);

    List<String> getAllAreaIds();

    List<Region> selectRegionList();

    void addMaintenancePlans(List<MaintenancePlan> maintenancePlanList);


}
